package dao;

import com.qf.test.mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDAO {
    User getUserById(@Param("i") Integer id, @Param("n") String name);

    User getUserById(Map param);

    User getUser(User user);

    List<User> getAllUser(String name);

    void deleteById(int id);

    void deleteByIds(List ids);

    void updateUser(User user);

    int addUser(User user);
}
